package com.example.personal.aiagent.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.personal.aiagent.xunfei.account.model.entity.AccountEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

/**
 * 用户
 */
@Data
@ToString(exclude = "password")
@AllArgsConstructor
@NoArgsConstructor
@TableName("USER")
public class UserEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String createTimeDisplay;

    private String modifyTimeDisplay;

    private Integer createTimestamp;

    private Integer modifyTimestamp;

    /**
     * 逗号分割，角色
     * INIT/ADMIN
     */
    private String roles;
}
